﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" AutoEventWireup="true"
    CodeFile="PlanView.aspx.cs" Inherits="PlanMangement_PlanView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabTitle" runat="Server">
    <asp:Label ID="lbl_Title" runat="server" Text="<%$Resources:Resource ,ExpectedYieldView %>"></asp:Label>
    <%--预计产量浏览--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManager ID="s1" runat="server">
    </asp:ScriptManager>
    <div style="width: 100%;">
        <div class="queryDiv1">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="divFrameHead">
                        <span class="querytextCss">
                            <%=Resources.Resource.Query%></span>
                    </td>
                </tr>
                <tr>
                    <td class="submitborder" style="padding-top: 15px; padding-bottom: 15px;">
                        <table style="margin-bottom: 10px;" width="95%" border="0" align="center" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td class="submitborder4">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="submitFieldbg">
                                                <%=Resources.Resource.Version%><%--版本--%>&nbsp;
                                            </td>
                                            <td align="left">
                                                <IMC:VersionDropDown ID="dll_PlanVersion" runat="server">
                                                </IMC:VersionDropDown>
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                                <%=Resources.Resource.ProductID%><%--产品编号--%>&nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_MaterialCode" runat="server" Width="120px"></asp:TextBox>
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                                BU&nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_Bu" runat="server" Width="120px"></asp:TextBox>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="submitFieldbg">
                                                UnitStatus&nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList ID="dll_UnitStatus" runat="server" Width="120">
                                                    <asp:ListItem Value="0">All</asp:ListItem>
                                                    <asp:ListItem Value="1">TempUnit</asp:ListItem>
                                                    <asp:ListItem Value="2">NoUnit</asp:ListItem>
                                                </asp:DropDownList>
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                                &nbsp;
                                            </td>
                                            <td align="center">
                                               
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                                &nbsp;
                                            </td>
                                            <td align="center">
                                                
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <div style="text-align: center;">
                            <asp:Button ID="Button2" runat="server" Text=" <%$Resources:Resource,btnEnquiry  %> " />
                            <%--查 询--%>
                            <asp:Button ID="btn_CopyVersion" runat="server" Text=" <%$Resources:Resource,CopyVersion  %> "
                                OnClientClick="return CopyVersion();" />
                            <%--查 询--%>
                            <asp:Button ID="btn_Delete_Plan" runat="server" Text=" <%$Resources:Resource,btnDel  %> " OnClick="btn_Delete_Plan_Click"
                                OnClientClick="return confirm('Are you Sure do delete operation?')" />
                        </div>
                    </td>
                </tr>
            </table>
            
        </div>
        <div class="GridDivCss">
            <IMC:GridView ID="gvPlanView" runat="server" AllowPaging="true" AllowSorting="true"
                PageSize="10" DataSourceID="PlanViewDataSource" OnRowCommand="gvPlanView_RowCommand"
                OnRowDataBound="gvPlanView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="<%$Resources:Resource,Version  %>" ItemStyle-HorizontalAlign="Center">
                        <%--版 本--%>
                        <ItemTemplate>
                            &nbsp;<asp:Label ID="lbl_PlanVersion" runat="server" Text='<%#Eval("PlanVersion")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$Resources:Resource,ProductID  %>" ItemStyle-HorizontalAlign="left">
                        <%--产品编号--%>
                        <ItemTemplate>
                            &nbsp;&nbsp;<asp:LinkButton ID="lbl_xSVMaterial" runat="server" Text='<%#Eval("MaterialCode")%>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="BU" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_BusinessUnit" runat="server" Text='<%#Eval("BU")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="01" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m1" runat="server" Text='<%#Eval("m1")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="02" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m2" runat="server" Text='<%#Eval("m2")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="03" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m3" runat="server" Text='<%#Eval("m3")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="04" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m4" runat="server" Text='<%#Eval("m4")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="05" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m5" runat="server" Text='<%#Eval("m5")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="06" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m6" runat="server" Text='<%#Eval("m6")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="07" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m7" runat="server" Text='<%#Eval("m7")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="08" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m8" runat="server" Text='<%#Eval("m8")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="09" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m9" runat="server" Text='<%#Eval("m9")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="10" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m10" runat="server" Text='<%#Eval("m10")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="11" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m11" runat="server" Text='<%#Eval("m11")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="12" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            &nbsp;
                            <asp:Label ID="lbl_m12" runat="server" Text='<%#Eval("m12")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText=" <%$Resources:Resource,Operating  %> " ItemStyle-HorizontalAlign="Center">
                        <%--操 作--%>
                        <ItemTemplate>
                            <a href="#" onclick="return Upd('<%#Eval("MaterialCode")%>','<%#Eval("ID")%>'
                                ,'<%#Eval("m1")%>','<%#Eval("m2")%>','<%#Eval("m3")%>','<%#Eval("m4")%>'
                                ,'<%#Eval("m5")%>','<%#Eval("m6")%>','<%#Eval("m7")%>','<%#Eval("m8")%>' 
                                ,'<%#Eval("m9")%>','<%#Eval("m10")%>','<%#Eval("m11")%>','<%#Eval("m12")%>')">
                                <%=Resources.Resource.btnMaintain %></a>
                            <asp:LinkButton ID="lbtn_Del" runat="server" Text="<%$Resources:Resource, btnDel %>"
                                CommandName="Del" CommandArgument='<%#Eval("ID")%>' OnClientClick="return  isDel()"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </IMC:GridView>
            <asp:ObjectDataSource ID="PlanViewDataSource" runat="server" TypeName="PlanDataSource"
                SelectMethod="Select">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txt_MaterialCode" Name="MaterialCode" Type="String"
                        PropertyName="Text" />
                    <asp:ControlParameter ControlID="txt_Bu" Name="BU" Type="String" PropertyName="Text" />
                    <asp:ControlParameter ControlID="dll_PlanVersion" Name="PlanVerion" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="dll_UnitStatus" Name="haveUnitFlag" Type="Int16"
                        PropertyName="SelectedValue" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </div>
    </div>
    <input id="btnPreview" runat="server" type="button" value="预览" cssclass="buttonbgtwo"
        style="display: none;" />
    <input id="btncopy" runat="server" type="button" value="复制" cssclass="buttonbgtwo"
        style="display: none;" />
    <input id="btnRelation" runat="server" type="button" value="预览" cssclass="buttonbgtwo"
        style="display: none;" />
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnPreview"
        PopupControlID="Panel1" BackgroundCssClass="modalBackground" CancelControlID="btnCancel"
        DropShadow="true" PopupDragHandleControlID="Panel3" />
    <asp:Panel ID="Panel1" runat="server" Width="580px" Style="display: none" CssClass="modalPopup">
        <asp:Panel ID="Panel3" runat="server" Style="cursor: move; background-color: #DDDDDD;
            border: solid 1px Gray; color: Black">
            <div class="tagdivhead" style="background-color: #D6E0EE; padding-top: 8px">
                <div class="divcenter">
                    <span>&nbsp;<asp:Label ID="lbtitle" runat="server" CssClass="querytextCss" Width="150px"
                        Height="16px" Text="<%$Resources:Resource,PlanDetailsMaintenance%>"></asp:Label>
                        <%--计划明细维护--%>
                    </span>
                </div>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ModifytableCss">
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        <%=Resources.Resource.ProductID%><%--产品编号--%>
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txtProductNo" runat="server" Width="120px"></asp:TextBox>
                        <asp:HiddenField ID="hid_PlanID" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        01
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month1" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        02
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month2" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        03
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month3" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        04
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month4" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        05
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month5" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        06
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month6" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        07
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month7" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        08
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month8" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        09
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month9" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        10
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month10" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss">
                        11
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month11" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss">
                        12
                    </td>
                    <td class="querycoltdCss">
                        <asp:TextBox ID="txt_Month12" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="padding-bottom: 3; padding-top: 3">
                        <asp:Button ID="btnUpd" runat="server" Text="<%$Resources:Resource,btnSave%>" OnClick="btnUpd_Click" />
                        <%--保 存--%>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="<%$Resources:Resource,btnClear%>" />
                        <%--取 消--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="btncopy"
        PopupControlID="Panel2" BackgroundCssClass="modalBackground" CancelControlID="btn_CopyCancel"
        DropShadow="true" PopupDragHandleControlID="Panel4" />
    <asp:Panel ID="Panel2" runat="server" Width="580px" Style="display: none" CssClass="modalPopup">
        <asp:Panel ID="Panel4" runat="server" Style="cursor: move; background-color: #DDDDDD;
            border: solid 1px Gray; color: Black">
            <div class="tagdivhead" style="background-color: #D6E0EE; padding-top: 8px">
                <div class="divcenter">
                    <span>&nbsp;<asp:Label ID="Label1" runat="server" CssClass="querytextCss" Width="150px"
                        Height="16px" Text="<%$Resources:Resource,CopyVersion%>"></asp:Label>
                        <%--版本复制--%>
                    </span>
                </div>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ModifytableCss">
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="text-align: center" colspan="6">
                        <%=Resources.Resource.VersionRemark%><%--版本备注--%>
                        <asp:TextBox ID="txt_VersionRemark" runat="server" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="padding-bottom: 3; padding-top: 3">
                        <asp:Button ID="btn_SaveCopy" runat="server" Text="<%$Resources:Resource,btnSave%>"
                            OnClick="btn_SaveCopy_Click" />
                        <%--保 存--%>
                        &nbsp;&nbsp;
                        <asp:Button ID="btn_CopyCancel" runat="server" Text="<%$Resources:Resource,btnClear%>" />
                        <%--取 消--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="btnRelation"
        PopupControlID="PanelR" BackgroundCssClass="modalBackground" CancelControlID="btn_Cancel"
        DropShadow="true" PopupDragHandleControlID="PanelR2" />
    <asp:Panel ID="PanelR" runat="server" Width="650px" CssClass="modalPopup" Style="display: none">
        <asp:Panel ID="PanelR2" runat="server" Style="cursor: move; background-color: #DDDDDD;
            border: solid 1px Gray; color: Black">
            <div class="tagdivhead" style="background-color: #D6E0EE; padding-top: 8px">
                <div class="divcenter">
                    <span>&nbsp;<asp:Label ID="Label2" runat="server" CssClass="querytextCss" Width="150px"
                        Height="16px"></asp:Label>
                    </span>
                </div>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ModifytableCss">
                <tr>
                    <td colspan="3" style="height: 1px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="width: 20%">
                        <%=Resources.Resource.ProductID%><%--产品编号--%>
                    </td>
                    <td class="querycoltdCss" style="width: 30%">
                        <asp:TextBox ID="txtM_ProductCode" runat="server" Width="120px" MaxLength="45"></asp:TextBox>
                    </td>
                    <td class="querytexttdCss" style="width: 20%">
                        <%=Resources.Resource.ComponentsNo%>
                        <%--元件数量--%>
                    </td>
                    <td class="querycoltdCss" style="width: 30%">
                        <asp:TextBox ID="txtM_UnitCount" runat="server" Width="120px" MaxLength="7"></asp:TextBox>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="<%$Resources:Resource,Number%>"
                            ControlToValidate="txtM_UnitCount" Type="Integer" MinimumValue="0" MaximumValue="999999"
                            Display="Dynamic" ValidationGroup="Upd">
                        </asp:RangeValidator>
                        <asp:HiddenField ID="hid_ID" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="width: 20%">
                        <%=Resources.Resource.Parameter%>
                        <%--参数--%>
                    </td>
                    <td class="querycoltdCss" style="width: 30%">
                        <asp:TextBox ID="txtM_Para" runat="server" Width="120px" MaxLength="30"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtM_Para"
                            ValidationGroup="Upd" ErrorMessage="<%$Resources:Resource,Number%>" Type="Double"
                            Display="Dynamic"></asp:CompareValidator>
                    </td>
                    <td class="querytexttdCss">
                        isTemp
                    </td>
                    <td class="querycoltdCss">
                        <asp:CheckBox ID="cbx_isTemp" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="width: 100px">
                    </td>
                    <td class="querycoltdCss" colspan="3">
                    </td>
                </tr>
                <tr style="height: 5px;">
                    <td colspan="4">
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="width: 100px">
                    </td>
                    <td class="querycoltdCss" colspan="3">
                        <%-- HalfProduct Log&nbsp;&nbsp;<asp:Label ID="txt_HalfLog" runat="server">ccc</asp:Label> --%>
                    </td>
                </tr>
                <tr>
                    <td class="querytexttdCss" style="width: 100px; height: 30px;">
                    </td>
                    <td class="querycoltdCss" colspan="3">
                        <%--Program Log&nbsp;&nbsp;<asp:Label ID="txt_ProgramLog" runat="server"></asp:Label>--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="padding-bottom: 3; padding-top: 3;">
                        <asp:Button ID="btn_Save" runat="server" Text="<%$Resources:Resource,btnSave%>" ValidationGroup="Upd"
                            OnClick="btn_Save_Click" />
                        <%--保 存--%>
                        &nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Cancel" runat="server" Text="<%$Resources:Resource,btnClear%>" />
                        <%--取 消--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 5px;">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
    <script type="text/javascript">
        function AddRelation(product, hprduct, proname, id, isTemp, unit) {
            document.getElementById("<%= txtM_ProductCode.ClientID%>").value = product;
            document.getElementById("<%= txtM_UnitCount.ClientID%>").value = unit;
            document.getElementById("<%= txtM_Para.ClientID%>").value = 1;
            document.getElementById("<%= hid_ID.ClientID%>").value = id;

            if (isTemp == 1) {
                document.getElementById("<%= cbx_isTemp.ClientID%>").checked = true;
            } else {
                document.getElementById("<%= cbx_isTemp.ClientID%>").checked = false;
            }

            document.getElementById("<%= txtM_ProductCode.ClientID%>").readOnly = "";

            document.getElementById('<%= btnRelation.ClientID%>').click();
            return false;
        }

        function Closed() {
            window.opener = null; window.close();
        }
        function isDel() {
            return confirm('<%=Resources.Resource.IsDelete %>');
        }

        function Upd(ProductNo, planID, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12) {

            document.getElementById("<%= txtProductNo.ClientID%>").value = ProductNo;
            document.getElementById("<%= hid_PlanID.ClientID%>").value = planID;
            document.getElementById("<%= txt_Month1.ClientID%>").value = m1;
            document.getElementById("<%= txt_Month2.ClientID%>").value = m2;
            document.getElementById("<%= txt_Month3.ClientID%>").value = m3;
            document.getElementById("<%= txt_Month4.ClientID%>").value = m4;
            document.getElementById("<%= txt_Month5.ClientID%>").value = m5;
            document.getElementById("<%= txt_Month6.ClientID%>").value = m6;
            document.getElementById("<%= txt_Month7.ClientID%>").value = m7;
            document.getElementById("<%= txt_Month8.ClientID%>").value = m8;
            document.getElementById("<%= txt_Month9.ClientID%>").value = m9;
            document.getElementById("<%= txt_Month10.ClientID%>").value = m10;
            document.getElementById("<%= txt_Month11.ClientID%>").value = m11;
            document.getElementById("<%= txt_Month12.ClientID%>").value = m12;

            document.getElementById('<%= btnPreview.ClientID%>').click();

            return false;

        }

        function CopyVersion() {
            document.getElementById('<%= btncopy.ClientID%>').click();
            return false;

        }
        function isDel() {
            return confirm('<%=Resources.Resource.IsDelete %>');
        }
    </script>
</asp:Content>
